const ora = require('ora')

const spinner = ora()
spinner.text = 'loading...'
spinner.start()

setTimeout(() => {
  spinner.succeed('结束')
  spinner.fail('结束')
  spinner.info('结束')
}, 2000)